import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'


const routes: Array<RouteRecordRaw> = [
  {
    path:'/',
    component:()=>import('../components/Login/Login1.vue')
  },
  {
    path: '/shou',
    component:()=>import('../components/Shou.vue'),
    redirect:'/shou/jiao',
    children:[
      {
        path:'/shou/jiao',
        component:()=>import('../components/Jiaowu/Jiaowu1.vue')
      },
      {
        path:'/shou/bei',
        component:()=>import('../components/Beike/Beike1.vue')
      },
      {
        path:'/shou/pei',
        component:()=>import('../components/Peizhi/Peizhi1.vue')
      },
      {
        path:'/shou/zi',
        component:()=>import('../components/Ziyuan/Ziyuan1.vue')
      },
      {
        path:'/shou/zouban',
        component:()=>import('../components/Zouban/Zouban1.vue')
      },
      {
        path:'/shou/zuoye',
        component:()=>import('../components/Zuoye/Zuoye1.vue')
      }
    ]
  },
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
